var Stencil = {};

Stencil.groups = {
    basic: { index: 1, label: 'composants de base' }



};

// Stencil.filter = { name: 'dropShadow', args: { dx: 1, dy: 1, blur: 2 } };
//

Stencil.shapes = {

    basic: [



        new joint.shapes.devs.Atomic({
            size: { width: 4, height: 3 },
            inPorts: ['in1','in2'],
            outPorts: ['out'],
            attrs: {
                '.': { filter: Stencil.filter },
	        rect: { fill: '', rx: 2, ry: 2 },
                '.label': { text: '', fill: 'white', 'font-size': 10, stroke: 'black', 'stroke-width': 0 },
            image: { 'xlink:href': './img/Event.png' },
	        '.inPorts circle': { fill: '#f1c40f', opacity: 0.9 },
                '.outPorts circle': { fill: '#f1c40f', opacity: 0.9 },
	        '.inPorts text, .outPorts text': { 'font-size': 9 }
            }
        }),
        new joint.shapes.basic.start({
            attrs: {
                '.': { filter: Stencil.filter },
                image: { width: 50, height: 50, 'xlink:href': './img/start.png' },
                text: { text: '', 'font-size': 9, display: '', stroke: 'black', 'stroke-width': 0 }
            }
        }),
        new joint.shapes.basic.AndroidTextView({
            attrs: {
                '.': { filter: Stencil.filter },
                image: { width: 80, height: 40, 'xlink:href': './img/AndroidTextView.png' },
                text: { text: '', 'font-size': 13, display: '', stroke: 'black', 'stroke-width': 0 }
            }
        }),

        new joint.shapes.basic.AndroidEditText({
            attrs: {
                '.': { filter: Stencil.filter },
                image: { width: 50, height: 50, 'xlink:href': './img/AndroidEditText.png' },
                text: { text: '', 'font-size': 9, display: '', stroke: 'black', 'stroke-width': 0 }
            }
        }),
        new joint.shapes.basic.AndroidButton({
            attrs: {
                '.': { filter: Stencil.filter },
                image: { width: 50, height: 50, 'xlink:href': './img/AndroidButton.png' },
                text: { text: '', 'font-size': 9, display: '', stroke: 'black', 'stroke-width': 0 }
            }
        }),
        new joint.shapes.basic.AndroidCheckBox({
            attrs: {
                '.': { filter: Stencil.filter },
                image: { width: 50, height: 50, 'xlink:href': './img/AndroidCheckBox.png' },
                text: { text: '', 'font-size': 9, display: '', stroke: 'black', 'stroke-width': 0 }
            }
        }),
        new joint.shapes.basic.AndroidImageView({
            attrs: {
                '.': { filter: Stencil.filter },
                image: { width: 50, height: 50, 'xlink:href': './img/AndroidImageView.png' },
                text: { text: '', 'font-size': 9, display: '', stroke: 'black', 'stroke-width': 0 }
            }
        }),
        new joint.shapes.basic.AndroidImageView2({
            attrs: {
                '.': { filter: Stencil.filter },
                image: { width: 50, height: 50, 'xlink:href': './img/AndroidImageView2.png' },
                text: { text: '', 'font-size': 9, display: '', stroke: 'black', 'stroke-width': 0 }
            }
        }),
        new joint.shapes.basic.AndroidRadioButton({
            attrs: {
                '.': { filter: Stencil.filter },
                image: { width: 50, height: 50, 'xlink:href': './img/AndroidRadioButton.png' },
                text: { text: '', 'font-size': 9, display: '', stroke: 'black', 'stroke-width': 0 }
            }
        }),
        new joint.shapes.basic.AndroidToggleButton({
            attrs: {
                '.': { filter: Stencil.filter },
                image: { width: 50, height: 50, 'xlink:href': './img/AndroidToggleButton.png' },
                text: { text: '', 'font-size': 9, display: '', stroke: 'black', 'stroke-width': 0 }
            }
        }),
        new joint.shapes.basic.ImageUpEvent({
            attrs: {
                '.': { filter: Stencil.filter },
                image: { width: 50, height: 50, 'xlink:href': './img/Event.png' },
                text: { text: '', 'font-size': 9, display: '', stroke: 'black', 'stroke-width': 0 }
            }
        }),
        new joint.shapes.basic.Out({
            attrs: {
                '.': { filter: Stencil.filter },
                image: { width: 50, height: 50, 'xlink:href': './img/Out.png' },
                text: { text: '', 'font-size': 9, display: '', stroke: 'black', 'stroke-width': 0 }
            }
        }),
        new joint.shapes.uml.Class({ name: 'Class',attributes: ['+attr1'], methods: ['-setAttr1()'], attrs: { '.': { filter: Stencil.filter }, '.uml-class-name-text': { 'font-size': 9 } ,'.uml-class-attrs-text': { 'font-size': 9 }, '.uml-class-methods-text': { 'font-size': 9 } ,image: { 'xlink:href': './img/Event.png' }} })




    ]






};
